/*
* @Date: 2021/1/19
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/
export default {
  display: 'inline-block',
  props: [{
    key: 'block',
    type: 'boolean',
    label: '块状',
    callback: (target, value) => {
      if (value) {
        $(target).parent().css('display', 'block');
        $(target).css('display', 'block');
      } else {
        $(target).parent().css('display', 'block');
        $(target).css('display', 'inline-block');
      }
    }
  }, {
    key: 'danger',
    type: 'boolean',
    label: '危险',
  }, {
    key: 'disabled',
    type: 'boolean',
    label: '失效',
  }, {
    key: 'ghost',
    type: 'boolean',
    label: '幽灵属性',
  }, {
    key: 'icon',
    type: 'icon',
    label: '图标',
  }, {
    key: 'loading',
    type: 'boolean',
    label: '加载状态',
  }, {
    key: 'shape',
    type: 'select',
    options: ['', 'circle', 'round'],
    label: '形状',
  }, {
    key: 'size',
    type: 'select',
    options: ['', 'large', 'middle', 'small'],
    label: '大小',
  }, {
    key: 'type',
    type: 'select',
    options: ['', 'primary', 'ghost', 'dashed', 'link', 'text', 'default'],
    label: '类型',
    defaultValue: 'primary'
  }, {
    key: 'onClick',
    type: 'function',
    label: '点击事件',
    function: '(e)',
  }, {
    key: 'children',
    type: 'string',
    defaultValue: '按钮',
    label: '文本',
  }]
}
